package com.nvn.washiodriver.activities;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;

import com.nvn.washiodriver.R;
import com.nvn.washiodriver.views.CustomFontTextView;

public class BaseActivity extends FragmentActivity {

	protected ImageView mImvTitle;
	protected CustomFontTextView mTvTitle;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		overridePendingTransition(R.anim.slide_in_from_right, R.anim.anim_alpha);
		
	}

	protected void initView() {
		mImvTitle = (ImageView) findViewById(R.id.imv_menu);
		mImvTitle.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View arg0) {
				finish();
			}
		});
		
		mTvTitle = (CustomFontTextView)findViewById(R.id.tv_title_bar);
		String title = getIntent().getStringExtra("TITLE");
		mTvTitle.setText((title != null) ? title : "Washio");
	}
}
